package GUI.Frame;

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class TextFlowLayout {
    public static void main(String[] args) {
        Frame frame = new Frame();
        Button button1 = new Button("button01");
        Button button2 = new Button("button02");
        Button button3 = new Button("button03");
        frame.setSize(200,200);
        frame.setLocation(400,400);
        frame.setBackground(new Color(0x0EE178));
        frame.setLayout(new FlowLayout(2));
        frame.add(button1);
        frame.add(button2);
        frame.add(button3);
        frame.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
               System.exit(0);
            }
        });
        frame.setVisible(true);
    }
}
